function Person(name, age) {
  this.name = name;
  this.age = age;
}

function _new(constructor, ...args) {
  const obj = {};
  obj.__proto__ = constructor.prototype;
  const result = constructor.apply(obj, args);
  return typeof(result) == 'object' ? result : obj;
}
// const person1 = _new(Person, "yz", 18);
// console.log(person1);
console.log(Person.prototype);
console.log(Person.prototype.__proto__);

